package com.ibeetl.admin.aod.conf;

import com.ibeetl.admin.aod.conf.function.AodIndustryFunction;
import com.ibeetl.admin.aod.conf.function.AodIndustryKeywordFunction;
import org.beetl.core.GroupTemplate;
import org.omg.CORBA.Environment;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class AodConf implements InitializingBean {

    @Autowired
    GroupTemplate groupTemplate;

    @Autowired
    AodIndustryFunction aodIndustryFunction;

    @Autowired
    AodIndustryKeywordFunction aodIndustryKeywordFunction;

    @Override
    public void afterPropertiesSet() throws Exception {
        groupTemplate.registerFunction("aod.industryName", aodIndustryFunction);
        groupTemplate.registerFunction("aod.industryKeyword", aodIndustryKeywordFunction);
    }

}
